package com.eralink.unionuhfreader.base;

import android.view.Gravity;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity {
    Toast toast=null;
    public  void showToast(String msg){
        if (toast==null){
            toast=Toast.makeText(this,msg,Toast.LENGTH_LONG);
        }
        toast.setText(msg);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
}
